import request from '@/config/utils/request';

// 审批退回数据展示
export function listWfcRecord(data) {
  return request({
    url: '/apis/smp/payment/listWfcRecord',
    method: 'POST',
    data,
  });
}

// 查看详情展示的数据
export function qryPaymentdetail(data) {
  return request({
    url: '/apis/smp/payment/qryPaymentdetail',
    method: 'POST',
    data,
  });
}

// 申请详情-新增 保存并校验 保存并提交
export function insertPayment(data) {
  return request({
    url: '/apis/smp/payment/insertPayment',
    method: 'POST',
    data,
  });
}

// 申请详情-新增 保存并校验 保存并提交
export function updatePayment(data) {
  return request({
    url: '/apis/smp/payment/updatePayment',
    method: 'POST',
    data,
  });
}
// 申请详情-新增查询应付未付金额
export function qryPayablePrice(data) {
  return request({
    url: '/apis/smp/payment/qryPayablePrice',
    method: 'POST',
    data,
  });
}

// 基本信息相关接口
// 获取付款信息列表数据
export function qryList(data) {
  return request({
    url: '/apis/smp/payment/qryList',
    method: 'POST',
    data,
  });
}

// 撤回
export function withdrawPayment(data) {
  return request({
    url: '/apis/smp/payment/withdrawPayment',
    method: 'POST',
    data,
  });
}

// 删除
export function deletePayment(data) {
  return request({
    url: '/apis/smp/payment/deletePayment',
    method: 'POST',
    data,
  });
}
